<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>产品管理-</title>
<script type="text/javascript" src="/j-tool/jquery.js"></script>
<link href='/public/css/admins.css' rel='stylesheet' type='text/css'/>
<body>
	<div class='bread'>产品管理-><!--{if $product}-->修改<!--{else}-->添加<!--{/if}--></div>
	<div class="formBox">
		<form method="post" name="psource" action="" enctype="multipart/form-data"> 
			<table class="table-form">
				<tr>
					<td>标题：</td><td><input type="text" name="title" class="input-text" value="<!--{$product.title}-->" placeholder="write title"/></td>
				</tr>
				<tr>
					<td>描述：</td><td><textarea type="text" name="descrption" placeholder="descrption..." id="descrption"><!--{$product.description}--></textarea></td>
				</tr>
				<tr>
					<td>分类：</td>
					<td>
						<div id="sel" class="type-select">
							<div class="sel-box-value">
								<input type="hidden" name="cates" id="cates" value="<!--{$product.cates}-->">
								<input type="text" name="sele-text" id="sele-text" value="<!--{$product.catename}-->" placeholder="write or choose"><span class="sel-box-btn">搜索</span>
							</div>
							<ul>
							<!--{foreach from=$catename item=val}-->
								<li data="<!--{$val.cates}-->"><!--{$val.catename}--></li>
							<!--{/foreach}-->
							</ul>							
						</div>						
					</td>
				</tr>
				<tr>
					<td>标签：</td>
					<td>
					<!--{foreach from=$tages item=val key=key}-->
						<input type="checkbox" name="tage[]" value="<!--{$key}-->" <!--{if in_array($key,$product.tage)}-->checked<!--{/if}-->><!--{$val}-->
					<!--{/foreach}-->
					</td>
				</tr>
				<tr>
					<td>封面图：</td>
					<td>
						<div class="img-input">
							<input type="file" name="photo" id="photo"/>
							<input type="text" name="faceimg" placeholder="write or choose" class="file-path" value='<!--{$product.faceimg}-->'/><span>&nbsp;浏览...</span>			
						</div>
						<div id="imgbox"><!--{if $product.faceimg}--><img src="<!--{$product.faceimg}-->"/><!--{/if}--></div>
					</td>
				</tr>
				<tr>
					<td>核心代码：</td>
					<td>
						<textarea type="text" name="content" style="width:670px;height:450px;" placeholder="code"><!--{$product.content}--></textarea>
						<!--{if $product.id}--><input type="hidden" name="id" value="<!--{$product.id}-->"/><!--{/if}-->
					</td>
				</tr>
				<tr>
					<td>上线时间：</td><td><input type="text" name="playdate" value="<!--{$product.addtime|date_format:'%Y-%m-%d %H:%M:%S'}-->" class="input-text" placeholder="2000-00-00 00:00:00"/></td>
				</tr>
				<tr>
					<td></td><td><input type="submit" value="提交" class="butt"/>&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="butt"/></td>
				</tr>
			</table>
		</form>
	</div>
</body>
<script type="text/javascript" src="/j-tool/admins.js"></script>
<script><!--{if $notice == 1}-->alert("提交成功！");<!--{elseif $notice == 2}-->alert("提交失败，请填写必要项目！");<!--{/if}--></script>
</html>